import { createRouter, createWebHistory } from 'vue-router'
import index from '@/views/index.vue'
import My from '@/views/my.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/index',
      name: 'index',
      component: index,
    },
    {
      path: '/my',
      name: 'my',
      component:My,
    },
  ],
})

export default router
